// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_hm_rule_criterias
// * CreateDate    : 2014-06-05 18:30:00
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:00
// * LastChanger   : 2014-06-05 18:30:00
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class HmRuleCriteriasTable : TableInfo
    {
		public const string C_TableName = "hm_rule_criterias";
		
		public const string C_criteriaid = "criteriaid";
		public const string C_criteriaruleid = "criteriaruleid";
		public const string C_criteriausepredefined = "criteriausepredefined";
		public const string C_criteriapredefinedfield = "criteriapredefinedfield";
		public const string C_criteriaheadername = "criteriaheadername";
		public const string C_criteriamatchtype = "criteriamatchtype";
		public const string C_criteriamatchvalue = "criteriamatchvalue";
		
		public HmRuleCriteriasTable()
        {
            _tableName = "hm_rule_criterias";
        }
		
		protected static HmRuleCriteriasTable _current;
        public static HmRuleCriteriasTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new HmRuleCriteriasTable();

            _current.Add(C_criteriaid, new ColumnInfo(C_criteriaid,"Criteriaid", true, typeof(int)));
            _current.Add(C_criteriaruleid, new ColumnInfo(C_criteriaruleid,"Criteriaruleid", false, typeof(int)));
            _current.Add(C_criteriausepredefined, new ColumnInfo(C_criteriausepredefined,"Criteriausepredefined", false, typeof(byte)));
            _current.Add(C_criteriapredefinedfield, new ColumnInfo(C_criteriapredefinedfield,"Criteriapredefinedfield", false, typeof(byte)));
            _current.Add(C_criteriaheadername, new ColumnInfo(C_criteriaheadername,"Criteriaheadername", false, typeof(string)));
            _current.Add(C_criteriamatchtype, new ColumnInfo(C_criteriamatchtype,"Criteriamatchtype", false, typeof(byte)));
            _current.Add(C_criteriamatchvalue, new ColumnInfo(C_criteriamatchvalue,"Criteriamatchvalue", false, typeof(string)));
			
		}
		
		public ColumnInfo criteriaid
        {
            get { return this[C_criteriaid]; }
        }
		
		public ColumnInfo criteriaruleid
        {
            get { return this[C_criteriaruleid]; }
        }
		
		public ColumnInfo criteriausepredefined
        {
            get { return this[C_criteriausepredefined]; }
        }
		
		public ColumnInfo criteriapredefinedfield
        {
            get { return this[C_criteriapredefinedfield]; }
        }
		
		public ColumnInfo criteriaheadername
        {
            get { return this[C_criteriaheadername]; }
        }
		
		public ColumnInfo criteriamatchtype
        {
            get { return this[C_criteriamatchtype]; }
        }
		
		public ColumnInfo criteriamatchvalue
        {
            get { return this[C_criteriamatchvalue]; }
        }
		
		
		
	}
}

